package com.example.project.projectspringcloud.dao.user;

import com.example.project.projectspringcloud.dao.BaseMapper;
import com.example.project.projectspringcloud.entity.user.Menu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Set;

@Mapper
@Repository
public interface MenuMapper extends BaseMapper<Menu> {

    /**
     * select all menu by role name
     * @param roleSet
     * @return all menu
     */
    List<Menu> selectAllMenuByRole(@Param("roleSet")Set<String> roleSet);

}